<?php /* Smarty version 2.6.26, created on 2011-05-16 16:02:20
         compiled from diarylist.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>所有日志</title>
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/base.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/common.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/page.css" rel="stylesheet" />
</head>

<body>
<div class="wrap">
  <!-- 头部 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /头部 --> 
  <div class="main">
   <div class="mainContent">
         <div class="title-long"><h3 class="ml20 ffs f18 fb">日志</h3></div>
         <div class="sidebar25 ml30 f13">
         <?php if ($this->_tpl_vars['logined']): ?>
            <a href="blogs.php?style=writediary"><input name="" type="button" value="发表日志" class="buttonLong" value="上传相片" /></a>
            <p><a href="#">添加分类</a>|<a href="#">管理分类</a></p>
         <?php endif; ?>
            <ul class="f16 lh30 mt10">
               <li class="img01-style"><a href="#">所有日志</a></li>
               <li class="shape-style ml10"><a href="#">默认分类（<?php echo $this->_tpl_vars['count_blog']; ?>
）</a></li>
               <li class="img02-style"><a href="#">日志归档</a></li>
            </ul>            
         </div>
         <div class="content65 f14">            
            <h4><span class="fb">所有日志</span>有<?php echo $this->_tpl_vars['count_blog']; ?>
篇</h4>
            <div class="diary-list">
            <ul class="mt30">
               <?php unset($this->_sections['myblogs']);
$this->_sections['myblogs']['name'] = 'myblogs';
$this->_sections['myblogs']['loop'] = is_array($_loop=$this->_tpl_vars['myblogs']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['myblogs']['show'] = true;
$this->_sections['myblogs']['max'] = $this->_sections['myblogs']['loop'];
$this->_sections['myblogs']['step'] = 1;
$this->_sections['myblogs']['start'] = $this->_sections['myblogs']['step'] > 0 ? 0 : $this->_sections['myblogs']['loop']-1;
if ($this->_sections['myblogs']['show']) {
    $this->_sections['myblogs']['total'] = $this->_sections['myblogs']['loop'];
    if ($this->_sections['myblogs']['total'] == 0)
        $this->_sections['myblogs']['show'] = false;
} else
    $this->_sections['myblogs']['total'] = 0;
if ($this->_sections['myblogs']['show']):

            for ($this->_sections['myblogs']['index'] = $this->_sections['myblogs']['start'], $this->_sections['myblogs']['iteration'] = 1;
                 $this->_sections['myblogs']['iteration'] <= $this->_sections['myblogs']['total'];
                 $this->_sections['myblogs']['index'] += $this->_sections['myblogs']['step'], $this->_sections['myblogs']['iteration']++):
$this->_sections['myblogs']['rownum'] = $this->_sections['myblogs']['iteration'];
$this->_sections['myblogs']['index_prev'] = $this->_sections['myblogs']['index'] - $this->_sections['myblogs']['step'];
$this->_sections['myblogs']['index_next'] = $this->_sections['myblogs']['index'] + $this->_sections['myblogs']['step'];
$this->_sections['myblogs']['first']      = ($this->_sections['myblogs']['iteration'] == 1);
$this->_sections['myblogs']['last']       = ($this->_sections['myblogs']['iteration'] == $this->_sections['myblogs']['total']);
?>
               <li><span>【默认分类】</span><a href="blogs.php?style=diary&id=<?php echo $this->_tpl_vars['myblogs'][$this->_sections['myblogs']['index']]['blogID']; ?>
"><?php echo $this->_tpl_vars['myblogs'][$this->_sections['myblogs']['index']]['blog_title']; ?>
</a><span class="fr">阅读:<?php echo $this->_tpl_vars['myblogs'][$this->_sections['myblogs']['index']]['read_num']; ?>
&nbsp;评论：(<?php echo $this->_tpl_vars['myblogs'][$this->_sections['myblogs']['index']]['count_comment']; ?>
)&nbsp;<?php if ($this->_tpl_vars['logined']): ?><a href="blogs.php?style=editdiary&edit_id=<?php echo $this->_tpl_vars['myblogs'][$this->_sections['myblogs']['index']]['blogID']; ?>
">编辑</a>|<a href="blogs.php?style=diarylist&del_id=<?php echo $this->_tpl_vars['myblogs'][$this->_sections['myblogs']['index']]['blogID']; ?>
">删除</a><?php endif; ?></span></li>
               <?php endfor; endif; ?>
            </ul>
            <p class="mt10 tr"><?php echo $this->_tpl_vars['pagenav']; ?>
</p>
            </div>
         </div>
   </div>
       <!-- 导航 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "nav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /导航 -->
  </div>
  <!-- 页脚 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /页脚 --> 
</div>
</body>
</html>